Soft-Token Authentication System

ABSTRACT

A system for authenticating a user and his local device to a secured remote service with symmetrical keys, which utilizes a PIN from the user and a unique random value from the local device in such a way that prevents the remote service from ever learning the user&#39;s PIN, or a hash of that PIN. The system also provides mutual authentication, verifying to the user and local device that the correct remote service is being used. At the same time, the system protects against PIN guessing attacks by requiring communication with the said remote service in order to verify if the correct PIN is known. Also, the system works in such a way as to change the random value stored on the user&#39;s local device after each authentication session.

BACKGROUND OF THE INVENTION

This invention relates to the use of software tokens (also known as soft-tokens) to securely sign in to remote services. As the name implies, soft-tokens are software only alternatives to hardware based tokens and smart cards. As such, soft-tokens are meant to fill the gap where hardware tokens are impractical or inconvenient and password only verification is not a high enough level of security.

Traditionally, access to remote services was protected almost solely by user names and passwords. As the weaknesses in a password only system were realized by the industry, hardware based authentication devices were developed to provide an additional factor of authentication. This required users to have a physical device and know the associated PIN (Personal Identification Number) for that device. However, there was still a need for stronger authentication without adding an additional hardware device for every user, and so soft-tokens were conceived.

In the scope of this invention, a soft-token is a logical groping of data used to verify the local device being used by a user in addition to the user himself. This is considered an improvement in security over password only systems since an attacker would need to compromise the user's local device in addition to knowing the user's PIN. For the scope of this invention, the use of PIN is considered to be synonymous with password.

State-of-the-art products thus providing soft-token authentication suffer from one or more of the following deficiencies and limitations that limit the realization of their full potential and effectiveness.

-   -   First, systems that store soft-token credentials in a         certificate store or key chain that is available to other         applications on the device are vulnerable to having the         soft-tokens stolen or misused by malware and malicious users.     -   Second, systems that protect against the above stated         vulnerability commonly encrypt the credential data with a PIN.         However, this makes the encrypted data vulnerable to         brute-force-attacks on the user's PIN since the PIN can be         guessed and verified without any additional information.     -   Third, soft-tokens that use a stored credential that changes         infrequently cannot prevent that credential from being copied         and used on other devices, which is in contradiction to the         benefits and reason for having a soft-token in the first place.     -   Forth, soft-token systems that rely on a stored private key         require that the device using the soft-token perform an         asymmetric operation each time the token is used. As soft-tokens         could be used on a variety of small mobile devices such as smart         phones and tablets, this additional computational requirement         may degrade the user experience.

BRIEF SUMMARY OF THE INVENTION

In view of the above described state of the art, the present invention seeks to realize the following objects and advantages.

It is an object of the present invention to provide a soft-token system that uses a shared secret for mutual authentication with a remote service. The said secret being stored on the user's local device encrypted by a cryptographic hash of the user's PIN in such a way that decryption with any PIN hash will produce a plausible secret value. Thus the PIN cannot be guessed without attempting to authenticate with the remote service using the produced secret value.

It is another object of the present invention to provide a system whereby the shared secret described above is changed to a new completely random value as part of the soft-token mutual authentication. Doing so will cause any duplicate copies of the soft-token credential to become invalid and useless with each use.

It is a further object of the present invention to provide a system whereby the user's soft-token PIN, or a hash thereof, never exists on a remote server. In the unlikely event that the remote server is compromised, no user PINs will be exposed.

These and other objects and advantages of the invention will become more fully apparent from the description and claims which follow, or may be learned from the following discussion of the practice of the invention.

The present invention provides a system that uses a soft-token created and saved on a user's local device, which could be a personal computer, a desktop computer, a cell phone, a pad computer, or any other networked device, beforehand to authenticate with a remote service. A remote service consists of one or more servers connected to a network, such as the Internet. As part of the soft-token creation, a shared secret is created. A shared secret is a random number that is known by both the user's local device and the remote service, but is only stored on the user's local device after being encrypted using a cryptographic hash of the user's PIN. When the user attempts to sign in to a remote service for which a soft-token has been previously installed on his local device, the user will be prompted to enter his PIN. A cryptographic hash of the user's PIN will be used to decrypt the previously stored shared secret on the user's local device. However, the local device will not yet know if the decrypted value is the correct shared secret. To verify the shared secret, a challenge and response sequence will take place with the remote service. If the remote service knows the same secret that was decrypted with the user's PIN, then this mutual authentication will succeed. If the wrong PIN was used, authentication will fail and the remote service will be able to block the soft-token after too many failed attempts.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to better appreciate how the above recited and other advantages and objects of the invention are obtained; a more particular description of the invention briefly described above will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:

FIG. 1 is a block diagram showing soft-token data stored on a user's local device and the relationship of the soft-token to a remote service during the creation of a soft-token.

FIG. 2 is a block diagram depicting the relationship of the soft-token on a user's local device to a remote service during authentication over the Internet.

DETAILED DESCRIPTION OF THE INVENTION

In its preferred embodiments, the present invention includes a means for providing a secure, dual authentication sign in of users with local devices, such as smart phones, pad computers, desktop computers, and laptop computers, over the Internet to a remote service. Reference will now be made to the drawing wherein like structures will be provided with like reference designations. Referring to FIG. 1, a user's local device 1 is connected to a remote service 8 over the Internet. Before the sign in can take place, the soft-token 2 must first be created on the user's local device 1 by saving soft-token data to the device's storage media.

Components of Soft-Token Data

The soft-token 2 stored on the user's local device 1 consists of several different components. The identifier 3 is used to uniquely identify the soft-token 2 to the remote service 8. The identifier 3 helps the remote service 8 look up the correct shared secret 10 and session counter 6 from a database 9. The domain name 4 defines what remote service the soft-token 2 can be used with. The hidden secret 5 is the shared secret 10 known by the remote service 8 after being encrypted with a cryptographic hash of the user's PIN. The shared secret 10 changes every time the soft-token 2 is used for authentication. The session counter 6 starts out with a random value and is incremented each time the shared secret 10 is changed.

Creation of a Soft-Token

The creation of a soft-token 2 consists of a simple negotiation between the user's local device 1 and the remote service 8 to determine the initial soft-token 2 data. In one example of the preferred embodiments, the remote service 8 chooses a new unique identifier 3 and a random session counter 6. These two values are sent to the local device 1 through some out-of-band method, such as a URL protocol handler or browser add-on. The local device 1 saves the identifier 3 and session counter 6 from the remote service 8, plus the domain name 4 that points to the service 8. Next, the local device 1 uses a predetermined public key 7, whose private key 11 is known by the remote service 8, to derive a shared secret 10 which is encrypted with a hash of a PIN from the user before being saved on the local device 1 as the hidden secret 5. Likewise, the remote service 8 uses its private key 11 and a temporary public key from the local device to generate the same shared secret 10 to be saved in a database 9. The soft-token 2 is now created and ready for normal use.

Soft-Token Usage Example

In one example of the preferred embodiments (see FIG. 2), an existing soft-token is used to sign in a user with a local device to a remote service over the Internet. First, the local device 1 being used verifies that it has a soft-token 2 with a domain name 4 that matches the one being used by the remote service 8. Then the user is required to enter a PIN for the soft-token 2. A cryptographic hash of the PIN is used to decrypt the hidden secret 5 stored on the user's local device 1. The correct shared secret 10 is only produced if the right PIN is provided by the user.

Next, the local device 1 starts an authentication sequence with the remote service 8 by providing its soft-token identifier 3 and session counter 6 values to the remote service 8. The remote service 8 looks up the identifier 3 in a database 9. If the session counter 6 from the local device 1 does not match the expected value from the database 9, the remote service 8 rejects the soft-token 2 and authentication fails. Otherwise, the remote service 8 continues by creating an authentication challenge based on the appropriate shared secret 10 from the database 9 and sending it to the local device 1. The local device 1 uses what it believes to be the correct shared secret 10 as a symmetrical key to generate a response to the remote service's challenge. This response is sent to the remote service 8 along with another challenge created by the local device 1. The remote service 8 is now able to determine if the local device 1 has the correct shared secret 10, and thereby if the user entered the correct PIN, by verifying the response. The remote service 8 finishes the authentication sequence by generating a similar response to the challenge from the local device 1 and sending it back to the local device 1. By verifying the remote service's response, the local device 1 can determine if the remote service 8 also knows the same shared secret 10 and is therefore the correct remote service.

As part of the challenge and response process described above, a new shared secret 10 is also negotiated. As a side effect of this process, the remote service 8 is able to verify that the local device 1 received and knows the same new shared secret 10. At the completion of the authentication sequence, both the local device 1 and remote service 8 update the shared secret 10 they have stored for the soft-token 2. On the local device 1, this involves encrypting the new shared secret 10 with a cryptographic hash of the user's PIN and saving a new hidden secret 5.

In view of the foregoing, it will be appreciated that the present invention provides the feature of protecting the user's PIN from being verified except during a challenge and response process that involves both a remote service and the user's local device. Furthermore, the remote service has the ability of counting wrong PIN attempts and blocking a soft-token when too many failed attempts have been made, still while having no knowledge of the user's actual PIN. The present invention also allows a new shared secret to be negotiated and verified as part of each authentication, and thus reduces the risk of unauthorized duplication and use of soft-token data. 

What we claim is:
 1. A soft-token authentication system for controlling access by a user to a remote service, comprising: a local device that interfaces with the user; an interface for the local device to communicate with the remote service; a PIN which is provided by the user to the local device; storage used by the local device for storing soft-token data; and a shared secret which is (a) known by the remote service, (b) saved by the local device after being encrypted using the user's PIN, and (c) used to perform a challenge and response sequence, via the interface, between the local device and remote service.
 2. The soft-token authentication system of claim 1, wherein encryption of the said shared secret is done using a cryptographic hash of the user's PIN.
 3. The soft-token authentication system of claim 1, wherein the said challenge and response sequence provides mutual authentication.
 4. The soft-token authentication system of claim 1, wherein the said shared secret is replaced with a new random value as part of each authentication.
 5. The soft-token authentication system of claim 1, wherein the said shared secret is encrypted using a cryptographic hash of the user's PIN in such a way that decryption with any PIN hash will produce a plausible secret value.
 6. The soft-token authentication system of claim 1, wherein the said user's PIN, or any hash value derived therefrom, is never communicated to the remote service.
 7. The soft-token authentication system of claim 1, wherein the said local device is unable to verify that the user has entered his original PIN without communicating with the remote service.
 8. A method for controlling access to a remote service by a user who has a local device, comprising the steps of: creating a soft-token on the local device by: generating a new shared secret, via an interface between the local device and remote service; storing the shared secret at the remote service; encrypting the shared secret using a PIN provided by the user during soft-token creation to produce a hidden secret; saving the hidden secret on storage that is accessible to the local device; and using the soft-token that was created by: decrypting the hidden secret using a PIN provided by the user during authentication to produce a plausible shared secret; and using the plausible shared secret to carry out a challenge and response sequence, via the interface between the local device and remote service.
 9. The method of claim 8, wherein the said shared secret is encrypted using a cryptographic hash of the user's PIN.
 10. The method of claim 8, further comprising the step of completing the said challenge and response sequence in such a way that provides mutual authentication.
 11. The method of claim 8, further comprising the step of replacing the said shared secret with a new random value as part of the authentication.
 12. The method of claim 8, wherein the PIN provided by the user, or any hash value derived therefrom, is never communicated to the remote service.
 13. The method of claim 8, wherein the said local device is unable to verify if the user entered the correct PIN without communicating with the said remote service. 